﻿// 1.1.2.13. Declare two integer variables and assign them with 5 and 10 and after that exchange their values.

using System;

class SwitchingValues
{
    static void Main()
    {
        int a = 5;
        int b = 10;
        int temp = 0;
        Console.WriteLine("a = {0}, b = {1}", a, b);
        temp = a;
        a = b;
        b = temp;
        Console.WriteLine("a = {0}, b = {1}", a, b);
        a = 5;
        b = 10;
        Console.WriteLine("a = {0}, b = {1}", a, b);
        a = a + b;
        b = a - b;
        a = a - b;
        Console.WriteLine("a = {0}, b = {1}", a, b);
    }
}
